<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台欢迎页</title>
    <link rel="stylesheet" href="/static/css/reset.css" />
    <link rel="stylesheet" href="/static/css/content.css" />
</head>
<body marginwidth="0" marginheight="0">
<div class="container">
    <!--    <div class="public-nav">您当前的位置：<a href="{:url('admin/index/index')}">管理首页</a>><a href="">背景音乐管理</a></div>-->
    <div class="public-content">
        <div class="public-content-header">
            <h3>问答列表</h3>
        </div>
        <div class="public-content-cont">
<!--            <a style="display:inline-block; border:1px solid #ddd;width:60px;height:24px;line-height:24px;padding:3px;border-radius:5px;" href="{:url('admin/answer/classification')}">添加分类</a>-->
            <table class="public-cont-table">
                <tr>
                    <th style="width:10%">ID</th>
                    <th style="width:10%">问题类别</th>
                    <th style="width:20%">头像</th>
                    <th style="width:20%">昵称</th>
                    <th style="width:20%">问题</th>
                    <th style="width:20%">回答详情</th>
                </tr>
                {foreach $answer as $key=>$vo}
                <tr>
                    <td>{$vo.qq_id}</td>
                    <td>{$vo.qq_cate}</td>
                    <td><img src="{$vo.portrait}" width=60 height=60 /></td>
                    <td>{$vo.nickname}</td>
                    <td>{$vo.answer}</td>
                    <td>
                        <div class="table-fun">
                            <a href="{:url('admin/answer/questionDetails',array('qq_id'=>$vo['qq_id'],'state'=>1))}">详情</a>
                            <a href="{:url('admin/answer/questionDetails',array('qq_id'=>$vo['qq_id'],'state'=>2))}">删除</a>
                        </div>
                    </td>
                </tr>
                {/foreach}
            </table>
            <div class="mws-panel-content">
                <div class="list-page">
                    {$answer|raw}
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>